html add div around certain iframe php

85

$new = str_replace(['<iframe', '</iframe>'], ['<div class="generated-div"><iframe', '</iframe></div>'], $str);

Comments

Submit
0 Comments